package com.guoyh.ext

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager.widget.ViewPager
import com.guoyh.adapter.vp.FragmentVPStateAdapter

/**
 * @CreateDate: 2021/8/7 5:53 下午
 * @Author: guoyh
 * @Description: java类作用描述
 */

fun ViewPager.init(act:FragmentActivity,fragments :MutableList<Fragment>){

   adapter = FragmentVPStateAdapter(act.supportFragmentManager,fragments)
}